package com.sebklebes.radar.gae.dao;

import com.sebklebes.radar.gae.entity.RadarEntity;

import java.util.List;

/**
 * User: catalin.besleaga
 * Date: 5/16/11
 * Time: 10:43 PM
 */
public interface RadarDAO extends GenericDAO<RadarEntity> {
	//todo add special methods

	/**
	 * Returns a list of radars in a given range from the current location.
	 *
	 * @param latitude           current latitude
	 * @param longitude          current longitude
	 * @param rangeInMeters      range
	 * @param maxNumberOfResults maximum number of results to be returned
	 * @return a list of radars in the given range
	 */
	List<RadarEntity> getRadars(Double latitude, Double longitude, Double rangeInMeters, int maxNumberOfResults);
}
